This is a set of changes which allow the tracebuffer functionality to
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 30 Oct 2005 21:31:45 +0000 (22:31 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 30 Oct 2005 21:31:45 +0000 (22:31 +0100)
commitf6556b0d174a6a9d3d855f4ec92c7bf246e1b34c
tree46e0d9c15164b2c808fc6a0322b8543c0092892f
parent07237aa4f333c3feeb9e11e172213d2d440af4dd
This is a set of changes which allow the tracebuffer functionality to
be enabled and disabled dynamically while the system is running. The
existing DOM0_TBUFCONTROL hypercall is used, and three new operations
have been added: enable, disable, and set_size. This is to address
concerns that use of the trace buffers impacts system performance.

The initial value of opt_tbuf_size is set to zero, so that trace
buffers remain disabled by default. They can be enabled as they used
to be, by adding tbuf_size= to the xen command line at boot time. They
can also be turned on and off any time when the system is running. The
size of the trace buffer allocation can also be changed dynamically
while the system is running. The trace buffers may be completely
deallocated by setting the size to zero. No change in buffer size can
be done while tracing is enabled;

Other Changes made:
 - Update the constants in tools/xentrace/formats to match those in
public/trace.h
 - libxc functions for enable/disable, get/set size
Still left to do:
 - remove all ifdef's for trace buffers and the 'trace' build option
 - xm command to do enable/disable trace buffers and get/set size

Signed-off-by: Rob Gardner <rob.gardner@hp.com>
tools/libxc/Makefile
tools/libxc/xc_tbuf.c [new file with mode: 0644]
tools/libxc/xenctrl.h
tools/xentrace/Makefile
tools/xentrace/formats
tools/xentrace/setsize.c [new file with mode: 0644]
tools/xentrace/tbctl.c [new file with mode: 0644]
xen/Rules.mk
xen/common/trace.c
xen/include/public/dom0_ops.h